﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="QuanLyTaiKhoan.aspx.cs" Inherits="AirPlane.QuanLyTaiKhoan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
        .style1
        {
        	width:90%;
        	
        }
         </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
   <asp:Label ID="jquery" runat="server" Text="Label"></asp:Label>
<table align="center" class="style1">
        <tr>
            <td colspan="2">
             <h3 class="page-title-517">QUẢN LÝ TÀI KHOẢN HỘI VIÊN</h3>
             </td>
        </tr>
         <tr>
            <td colspan="2">
                <asp:Label ID="lbThongBao" runat="server" Text=""></asp:Label> </td>
        </tr>
        <tr>
            <td colspan="2">
                
                Từ Khóa :<asp:TextBox ID="txtKey" runat="server" CssClass="input-hey-search"></asp:TextBox>
                 <asp:Button ID="btnSearch" runat="server" CssClass="btnSearch-TaiKhoan" 
                    onclick="btnSearch_Click"  />
                
        </tr>

</table>
 <div id="search-tai-khoan">
       <asp:Label ID="lbTaiKhoan" runat="server" Text=""></asp:Label>
    <asp:GridView ID="gwTaiKhoan" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" GridLines="None" ForeColor="#333333" BorderColor="#999999" 
           BorderWidth="1px" CellSpacing="1" 
           onpageindexchanging="gwTaiKhoan_PageIndexChanging" 
           onrowcancelingedit="gwTaiKhoan_RowCancelingEdit" 
           onrowdeleting="gwTaiKhoan_RowDeleting" onrowediting="gwTaiKhoan_RowEditing" 
           onrowupdating="gwTaiKhoan_RowUpdating" DataKeyNames="ID_hoiVien" 
           ShowFooter="True" Width="900px" AllowPaging="True">
        <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:TemplateField HeaderText="MHV">
                 <ItemTemplate>
                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID_hoiVien") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="80px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Loại HV">
                 <EditItemTemplate>
                     <asp:DropDownList ID="ddlLoaiHoiVien" runat="server" Width="90px">
                     </asp:DropDownList>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:DropDownList ID="ddlLoaiHoiVien_add" runat="server" Width="90px">
                     </asp:DropDownList>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label2" runat="server" Text='<%# Bind("tenLoaiHoiVien") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Họ Tên">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("hoTen") %>' 
                         Width="100px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtHoTen" runat="server" Text="" 
                         Width="100px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label3" runat="server" Text='<%# Bind("hoTen") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="150px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Ngày Sinh">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ngaySinh") %>' 
                         Width="60px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtNgaySinh" runat="server" Text="1/1/1990" 
                         Width="60px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label4" runat="server" Text='<%# Bind("ngaySinh") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Giới Tính">
                 <EditItemTemplate>
                     <asp:DropDownList ID="ddlGioiTinh" runat="server">
                         <asp:ListItem Value="False">Nam</asp:ListItem>
                         <asp:ListItem Value="True">Nữ</asp:ListItem>
                     </asp:DropDownList>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:DropDownList ID="ddlGioiTinh_add" runat="server">
                         <asp:ListItem Value="False">Nam</asp:ListItem>
                         <asp:ListItem Value="True">Nữ</asp:ListItem>
                     </asp:DropDownList>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label5" runat="server" Text='<%# Bind("gioiTinh") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Email">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("email") %>' 
                         Width="120px"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtEmail" runat="server" Text="" Width="120px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label6" runat="server" Text='<%# Bind("email") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="120px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Tài Khoản">
                 <FooterTemplate>
                     <asp:TextBox ID="txtTaiKhoan" runat="server" Text="" 
                         Width="120px"></asp:TextBox>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label7" runat="server" Text='<%# Bind("taiKhoanDangNhap") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle Width="120px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Số Điểm ">
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("soDiemThuong") %>' 
                         Width="80px"></asp:TextBox>
                 </EditItemTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label8" runat="server" Text='<%# Bind("soDiemThuong") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Kích Hoạt">
                 <EditItemTemplate>
                     <asp:DropDownList ID="ddlKichHoat" runat="server">
                         <asp:ListItem>active</asp:ListItem>
                         <asp:ListItem>inactive</asp:ListItem>
                     </asp:DropDownList>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:DropDownList ID="ddlKichHoat_add" runat="server">
                         <asp:ListItem>active</asp:ListItem>
                         <asp:ListItem>inactive</asp:ListItem>
                     </asp:DropDownList>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label9" runat="server" Text='<%# Bind("kichHoat") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField ShowHeader="False">
                 <EditItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="True" 
                         CommandName="Update" ImageUrl="~/images/save.gif" Text="Update" ToolTip="Lưu Lại"/>
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Cancel" ImageUrl="~/images/delete.gif" Text="Cancel" ToolTip="Hoãn Lại" />
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:ImageButton ID="imgbtn_addMember" runat="server" 
                         ImageUrl="~/images/add.png" onclick="imgbtn_addMember_Click" ToolTip="Thêm Mới!" />
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                         CommandName="Edit" ImageUrl="~/images/edit.gif" Text="Edit" ToolTip="Cập Nhật" />
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Delete" ImageUrl="~/images/delete-item.jpg" Text="Delete" ToolTip="Xóa" />
                 </ItemTemplate>
                 <ItemStyle Width="50px" />
             </asp:TemplateField>
    </Columns>
         <EditRowStyle BackColor="#FFFDDF" />
        <FooterStyle BackColor="#FFFDDF" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

    </asp:GridView>
    </div>
    
      </ContentTemplate>
     </asp:UpdatePanel>
   
</asp:Content>
